package com.jeesite.modules.rt.service;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.rt.entity.RtGroup;
import com.jeesite.modules.rt.dao.RtGroupDao;

/**
 * 设备分组Service
 * @author 李寒冰
 * @version 2024-10-23
 */
@Service
public class RtGroupService extends CrudService<RtGroupDao, RtGroup> {
	
	/**
	 * 获取单条数据
	 * @param rtGroup
	 * @return
	 */
	@Override
	public RtGroup get(RtGroup rtGroup) {
		return super.get(rtGroup);
	}
	
	/**
	 * 查询分页数据
	 * @param rtGroup 查询条件
	 * @param rtGroup page 分页对象
	 * @return
	 */
	@Override
	public Page<RtGroup> findPage(RtGroup rtGroup) {
		return super.findPage(rtGroup);
	}
	
	/**
	 * 查询列表数据
	 * @param rtGroup
	 * @return
	 */
	@Override
	public List<RtGroup> findList(RtGroup rtGroup) {
		return super.findList(rtGroup);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param rtGroup
	 */
	@Override
	@Transactional
	public void save(RtGroup rtGroup) {
		super.save(rtGroup);
	}
	
	/**
	 * 更新状态
	 * @param rtGroup
	 */
	@Override
	@Transactional
	public void updateStatus(RtGroup rtGroup) {
		super.updateStatus(rtGroup);
	}
	
	/**
	 * 删除数据
	 * @param rtGroup
	 */
	@Override
	@Transactional
	public void delete(RtGroup rtGroup) {
		super.delete(rtGroup);
	}
	
}